package com.wonderful.map.bean

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * Desc: 虚拟障碍物实体类
 * @Author: wonderful
 * @Time: 2023/5/30 16:09
 */

data class VirtualObstacleBean(
    val mapUuid: String = "",
    var obstaclesType: Int = 0, // 0=虚拟墙 1=斜坡 2=原图编辑清空 3=原图编辑填充 4=减速带 5=门禁 6=鸣笛
    val obstacles: ObstaclesBean = ObstaclesBean()
)

data class ObstaclesBean(
    val circles: MutableList<CirclesBean> = mutableListOf(),               // 圆形
    val polygons: MutableList<List<GridPositionBean>> = mutableListOf(),   // 多边形
    val polylines: MutableList<List<GridPositionBean>> = mutableListOf(),  // 多线段
)

/**
 * 圆形
 */
@Parcelize
data class CirclesBean(
    var center: GridPositionBean = GridPositionBean(),  // 中心点坐标
    var radius: Float = 0f                              // 圆半径
) : Parcelable